package saas.dev.cloud.util.test;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName : BaseTree
 * @Author : y1
 * @Date: 2022/5/19 16:51
 * @Description : 递归方法接口基类
 */
public interface BaseTree {
    /**
     * 获取Id
     *
     * @return
     */
    Serializable getId();

    /**
     * 获取父类Id
     *
     * @return
     */
    Serializable getParentId();

    /**
     * 设置子树
     *
     * @param children
     * @return
     */
    void setChildList(List<? extends BaseBeanTree> children);
}
